<%--
  Created by IntelliJ IDEA.
  User: 九号
  Date: 2022/4/1
  Time: 15:14
  To change this template use File | Settings | File Templates.
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>博客后台-评论列表</title>
    <link href="${pageContext.request.contextPath}/admin/css/home.css" type="text/css" rel="stylesheet" />
    <script language="javascript" src="${pageContext.request.contextPath}/admin/js/public.js"></script>
    <script type="text/javascript">
        //删除订单
        function o_del() {
            var msg = "您确定要删除该条评论吗？";
            if (confirm(msg)==true){
                return true;
            }else{
                return false;
            }
        }
    </script>
</head>
<body>
<jsp:include page="/admin/login/top.jsp"/>
<div class="main">
    <jsp:include page="/admin/login/left.jsp"/>
    <div class="home">
<br />
<form id="commend_MG" name="commend_MG" action="RemarkList.jsp" method="post">
    <table cellspacing="1" cellpadding="0" width="100%" align="center" border="0">
        <TBODY>
        <tr>
            <td class="ta_01" align="center" style="font-weight: bold">
                评论列表
            </td>
        </tr>
        <tr>
            <td class="ta" align="center" bgColor="#f5fafe">
                <table cellspacing="0" cellpadding="1" rules="all"
                       bordercolor="gray" border="1" id="DataGrid1"
                       style="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; BORDER-LEFT: gray 1px solid; WIDTH: 100%; WORD-BREAK: break-all; BORDER-BOTTOM: gray 1px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #f5fafe; WORD-WRAP: break-word">
                    <tr style="FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #ceade2">
                        <td width="8%" align="center">评论对象</td>
                        <td align="center" width="24%" class="comment_content">评论内容</td>
                        <td align="center" width="9%">评论时间</td>
                        <td width="8%" align="center">评论的回复</td>
                        <td width="8%" align="center">删除</td>
                    </tr>
<c:forEach items="${remark}" var="remark">
    <tr onmouseover="this.style.backgroundColor = 'white'"
    onmouseout="this.style.backgroundColor = '#F5FAFE';">
    <td style="CURSOR: hand; HEIGHT: 22px" align="center" width="20%">${remark.author}</td>
    <td style="CURSOR: hand; HEIGHT: 22px" align="center" width="10%">${remark.content}</td>
    <td style="CURSOR: hand; HEIGHT: 22px" align="center" width="15%">${remark.pubtime }</td>
<%--    <td width="10%" align="center">${remark.state==0?"未审核":"已审核"}</td>--%>
    <td align="center" style="HEIGHT: 22px">
    <a href="${pageContext.request.contextPath}/DisplayReply?remarkId=${remark.id}">
    <img width="16px" src="${pageContext.request.contextPath}/admin/images/button_view.gif" border="0" style="CURSOR: hand">
    </a>
    </td>
    <td align="center" style="HEIGHT: 22px">
    <!--  已审核，弹出提示框由操作人确认 -->
    <c:if test="${order.state!=0 }">
        <a href="${pageContext.request.contextPath}/DeleteRemark?id=${remark.id}&type=admin" onclick="javascript:return o_del()">
            <img src="${pageContext.request.contextPath}/admin/images/i_del.gif" width="16" height="16" border="0" style="CURSOR: hand">
        </a>
    </c:if>

    </td>
    </tr>
</c:forEach>
                </table>
            </td>
        </tr>
    </table>
</form>
    </div>
</div>
</body>
<jsp:include page="/admin/login/bottom.jsp"/>

</html>
